package com.gxa.core.recycling.pojo;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonIgnore;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.persistence.*;
import java.io.Serializable;
import java.util.Date;

/**
 * @Author xhy
 * @Date 2021/11/29 11:20
 */
@Data
/*@ToString(exclude = {"salt","longType","lastLoginTime",""})*/
@NoArgsConstructor
@AllArgsConstructor
//出库订单表
@Table(name = "outorder")
@Entity
public class OutOrder implements Serializable {
    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY,generator = "JDBC")
    @Column(name = "id")
    private Long id;
    @Column(name = "managerId")
    //经办人、管理员Id
    private Long managerId;
    @Column(name = "title")
    //物资名称
    private String title;
    @Column(name = "state")
    //出库单状态
    private String state;
    @Column(name = "acquirerName")
    //收购方名称
    private String acquirerName;
    @Column(name = "acquirerPhone")
    //收购方联系电话
    private String acquirerPhone;
    //收购方详细地址
    @Column(name = "acquirerAddress")
    private String acquirerAddress;
    @Column(name = "auditManagerId")
    //有审核权限的管理员Id
    private Long auditManagerId;
    @Column(name = "remarks")
    //备注
    private String remarks;
    @Column(name = "auditTime")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    //审批时间
    private Date auditTime;
    //订单总价
    @Column(name = "total")
    private Double total;

}
